﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HR.Appointments.Service.DataAccessLayer;
using HR.Appointments.Service.ValueObjects;

namespace HR.Appointments.Service.Test
{
    public class MockReservedTime : IReservedTimeDAO
    {
        public List<ReservedTimeEntity> GetByDate(int CompanyEntityId, DateTime date)
        {
            var result = new List<ReservedTimeEntity>();

            ReservedTimeEntity time = ReservedTimeEntity.Create(1, DateTime.Parse("27.4.2008"),
                DateTime.Parse("28.4.2008"), 
                TimeUnit.Create(12, 0),
                TimeUnit.Create(13, 30), false, 1);
            result.Add(time);

            time = ReservedTimeEntity.Create(1, DateTime.Parse("28.4.2008"),
                DateTime.Parse("28.4.2008"), 
                TimeUnit.Create(15, 30),
                TimeUnit.Create(16, 0), false, 2);
            result.Add(time);

            return result;
        }

        #region IReservedTimeDAO Members

        public void Delete(int reservedtimeId)
        {
            throw new NotImplementedException();
        }

        public List<ReservedTimeEntity> GetByCompanyId(int companyId)
        {
            throw new NotImplementedException();
        }

        public void Insert(ReservedTimeEntity entity)
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}
